function ajax(oCfg) {
       var request = (window.XMLHttpRequest)
           ? new window.XMLHttpRequest()
           : new ActiveXObject("Microsoft.XMLHTTP");
	
       request.onreadystatechange = function(){
           if ((this.readyState == 4) && (this.status == 200 || this.status == 0)){
               var response = this.responseText;
               oCfg.success && oCfg.success(response);
           }
       };
       request.open(oCfg.method, oCfg.url, true);
       request.send();
}
 